package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderLogisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderLogisticsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLogisticsIdIsNull() {
            addCriterion("logistics_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdIsNotNull() {
            addCriterion("logistics_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdEqualTo(String value) {
            addCriterion("logistics_id =", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdNotEqualTo(String value) {
            addCriterion("logistics_id <>", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdGreaterThan(String value) {
            addCriterion("logistics_id >", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdGreaterThanOrEqualTo(String value) {
            addCriterion("logistics_id >=", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdLessThan(String value) {
            addCriterion("logistics_id <", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdLessThanOrEqualTo(String value) {
            addCriterion("logistics_id <=", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdLike(String value) {
            addCriterion("logistics_id like", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdNotLike(String value) {
            addCriterion("logistics_id not like", value, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdIn(List<String> values) {
            addCriterion("logistics_id in", values, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdNotIn(List<String> values) {
            addCriterion("logistics_id not in", values, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdBetween(String value1, String value2) {
            addCriterion("logistics_id between", value1, value2, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andLogisticsIdNotBetween(String value1, String value2) {
            addCriterion("logistics_id not between", value1, value2, "logisticsId");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeIsNull() {
            addCriterion("shipments_time is null");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeIsNotNull() {
            addCriterion("shipments_time is not null");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeEqualTo(Date value) {
            addCriterion("shipments_time =", value, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeNotEqualTo(Date value) {
            addCriterion("shipments_time <>", value, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeGreaterThan(Date value) {
            addCriterion("shipments_time >", value, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("shipments_time >=", value, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeLessThan(Date value) {
            addCriterion("shipments_time <", value, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeLessThanOrEqualTo(Date value) {
            addCriterion("shipments_time <=", value, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeIn(List<Date> values) {
            addCriterion("shipments_time in", values, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeNotIn(List<Date> values) {
            addCriterion("shipments_time not in", values, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeBetween(Date value1, Date value2) {
            addCriterion("shipments_time between", value1, value2, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andShipmentsTimeNotBetween(Date value1, Date value2) {
            addCriterion("shipments_time not between", value1, value2, "shipmentsTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeIsNull() {
            addCriterion("delivery_time is null");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeIsNotNull() {
            addCriterion("delivery_time is not null");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeEqualTo(Date value) {
            addCriterion("delivery_time =", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotEqualTo(Date value) {
            addCriterion("delivery_time <>", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeGreaterThan(Date value) {
            addCriterion("delivery_time >", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("delivery_time >=", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeLessThan(Date value) {
            addCriterion("delivery_time <", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeLessThanOrEqualTo(Date value) {
            addCriterion("delivery_time <=", value, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeIn(List<Date> values) {
            addCriterion("delivery_time in", values, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotIn(List<Date> values) {
            addCriterion("delivery_time not in", values, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeBetween(Date value1, Date value2) {
            addCriterion("delivery_time between", value1, value2, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andDeliveryTimeNotBetween(Date value1, Date value2) {
            addCriterion("delivery_time not between", value1, value2, "deliveryTime");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdIsNull() {
            addCriterion("logisticsType_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdIsNotNull() {
            addCriterion("logisticsType_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdEqualTo(String value) {
            addCriterion("logisticsType_id =", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotEqualTo(String value) {
            addCriterion("logisticsType_id <>", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdGreaterThan(String value) {
            addCriterion("logisticsType_id >", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdGreaterThanOrEqualTo(String value) {
            addCriterion("logisticsType_id >=", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdLessThan(String value) {
            addCriterion("logisticsType_id <", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdLessThanOrEqualTo(String value) {
            addCriterion("logisticsType_id <=", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdLike(String value) {
            addCriterion("logisticsType_id like", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotLike(String value) {
            addCriterion("logisticsType_id not like", value, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdIn(List<String> values) {
            addCriterion("logisticsType_id in", values, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotIn(List<String> values) {
            addCriterion("logisticsType_id not in", values, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdBetween(String value1, String value2) {
            addCriterion("logisticsType_id between", value1, value2, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticstypeIdNotBetween(String value1, String value2) {
            addCriterion("logisticsType_id not between", value1, value2, "logisticstypeId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdIsNull() {
            addCriterion("logisticsStatus_id is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdIsNotNull() {
            addCriterion("logisticsStatus_id is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdEqualTo(String value) {
            addCriterion("logisticsStatus_id =", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotEqualTo(String value) {
            addCriterion("logisticsStatus_id <>", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdGreaterThan(String value) {
            addCriterion("logisticsStatus_id >", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdGreaterThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_id >=", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdLessThan(String value) {
            addCriterion("logisticsStatus_id <", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdLessThanOrEqualTo(String value) {
            addCriterion("logisticsStatus_id <=", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdLike(String value) {
            addCriterion("logisticsStatus_id like", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotLike(String value) {
            addCriterion("logisticsStatus_id not like", value, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdIn(List<String> values) {
            addCriterion("logisticsStatus_id in", values, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotIn(List<String> values) {
            addCriterion("logisticsStatus_id not in", values, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdBetween(String value1, String value2) {
            addCriterion("logisticsStatus_id between", value1, value2, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsstatusIdNotBetween(String value1, String value2) {
            addCriterion("logisticsStatus_id not between", value1, value2, "logisticsstatusId");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1IsNull() {
            addCriterion("logistics_other1 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1IsNotNull() {
            addCriterion("logistics_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1EqualTo(String value) {
            addCriterion("logistics_other1 =", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1NotEqualTo(String value) {
            addCriterion("logistics_other1 <>", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1GreaterThan(String value) {
            addCriterion("logistics_other1 >", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1GreaterThanOrEqualTo(String value) {
            addCriterion("logistics_other1 >=", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1LessThan(String value) {
            addCriterion("logistics_other1 <", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1LessThanOrEqualTo(String value) {
            addCriterion("logistics_other1 <=", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1Like(String value) {
            addCriterion("logistics_other1 like", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1NotLike(String value) {
            addCriterion("logistics_other1 not like", value, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1In(List<String> values) {
            addCriterion("logistics_other1 in", values, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1NotIn(List<String> values) {
            addCriterion("logistics_other1 not in", values, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1Between(String value1, String value2) {
            addCriterion("logistics_other1 between", value1, value2, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther1NotBetween(String value1, String value2) {
            addCriterion("logistics_other1 not between", value1, value2, "logisticsOther1");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2IsNull() {
            addCriterion("logistics_other2 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2IsNotNull() {
            addCriterion("logistics_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2EqualTo(String value) {
            addCriterion("logistics_other2 =", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2NotEqualTo(String value) {
            addCriterion("logistics_other2 <>", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2GreaterThan(String value) {
            addCriterion("logistics_other2 >", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2GreaterThanOrEqualTo(String value) {
            addCriterion("logistics_other2 >=", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2LessThan(String value) {
            addCriterion("logistics_other2 <", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2LessThanOrEqualTo(String value) {
            addCriterion("logistics_other2 <=", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2Like(String value) {
            addCriterion("logistics_other2 like", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2NotLike(String value) {
            addCriterion("logistics_other2 not like", value, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2In(List<String> values) {
            addCriterion("logistics_other2 in", values, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2NotIn(List<String> values) {
            addCriterion("logistics_other2 not in", values, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2Between(String value1, String value2) {
            addCriterion("logistics_other2 between", value1, value2, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther2NotBetween(String value1, String value2) {
            addCriterion("logistics_other2 not between", value1, value2, "logisticsOther2");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3IsNull() {
            addCriterion("logistics_other3 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3IsNotNull() {
            addCriterion("logistics_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3EqualTo(String value) {
            addCriterion("logistics_other3 =", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3NotEqualTo(String value) {
            addCriterion("logistics_other3 <>", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3GreaterThan(String value) {
            addCriterion("logistics_other3 >", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3GreaterThanOrEqualTo(String value) {
            addCriterion("logistics_other3 >=", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3LessThan(String value) {
            addCriterion("logistics_other3 <", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3LessThanOrEqualTo(String value) {
            addCriterion("logistics_other3 <=", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3Like(String value) {
            addCriterion("logistics_other3 like", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3NotLike(String value) {
            addCriterion("logistics_other3 not like", value, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3In(List<String> values) {
            addCriterion("logistics_other3 in", values, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3NotIn(List<String> values) {
            addCriterion("logistics_other3 not in", values, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3Between(String value1, String value2) {
            addCriterion("logistics_other3 between", value1, value2, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther3NotBetween(String value1, String value2) {
            addCriterion("logistics_other3 not between", value1, value2, "logisticsOther3");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4IsNull() {
            addCriterion("logistics_other4 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4IsNotNull() {
            addCriterion("logistics_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4EqualTo(Integer value) {
            addCriterion("logistics_other4 =", value, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4NotEqualTo(Integer value) {
            addCriterion("logistics_other4 <>", value, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4GreaterThan(Integer value) {
            addCriterion("logistics_other4 >", value, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("logistics_other4 >=", value, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4LessThan(Integer value) {
            addCriterion("logistics_other4 <", value, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4LessThanOrEqualTo(Integer value) {
            addCriterion("logistics_other4 <=", value, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4In(List<Integer> values) {
            addCriterion("logistics_other4 in", values, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4NotIn(List<Integer> values) {
            addCriterion("logistics_other4 not in", values, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4Between(Integer value1, Integer value2) {
            addCriterion("logistics_other4 between", value1, value2, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("logistics_other4 not between", value1, value2, "logisticsOther4");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5IsNull() {
            addCriterion("logistics_other5 is null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5IsNotNull() {
            addCriterion("logistics_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5EqualTo(Integer value) {
            addCriterion("logistics_other5 =", value, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5NotEqualTo(Integer value) {
            addCriterion("logistics_other5 <>", value, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5GreaterThan(Integer value) {
            addCriterion("logistics_other5 >", value, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5GreaterThanOrEqualTo(Integer value) {
            addCriterion("logistics_other5 >=", value, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5LessThan(Integer value) {
            addCriterion("logistics_other5 <", value, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5LessThanOrEqualTo(Integer value) {
            addCriterion("logistics_other5 <=", value, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5In(List<Integer> values) {
            addCriterion("logistics_other5 in", values, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5NotIn(List<Integer> values) {
            addCriterion("logistics_other5 not in", values, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5Between(Integer value1, Integer value2) {
            addCriterion("logistics_other5 between", value1, value2, "logisticsOther5");
            return (Criteria) this;
        }

        public Criteria andLogisticsOther5NotBetween(Integer value1, Integer value2) {
            addCriterion("logistics_other5 not between", value1, value2, "logisticsOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}